package edu.wpi.cs509.ui.simulators;

import java.util.TimerTask;

import edu.wpi.cs509.representation.Location;
import edu.wpi.cs509.representation.PlayerPiece;
import edu.wpi.cs509.ui.intfc.GameEventNotify;

public class PiecePlacedNotify extends TimerTask {

	private Location loc;
	private PlayerPiece piece;
	private GameEventNotify notify;
	
	public PiecePlacedNotify( GameEventNotify notify, PlayerPiece piece, Location loc ) {
		this.loc = loc;
		this.piece = piece;
		this.notify = notify;
	}
	
	@Override
	public void run() {
		notify.notifyPiecePlaced(piece, loc);
	}

}
